package com.interview.javabasic.thread;

public class SynBlockAndMethod {
    public void syncsTask(){
        synchronized (this){
            System.out.println("Hello");
        }
    }
    public synchronized void syncTask(){
        System.out.println("Hello Again");
    }

}
